package org.gd.hellojaxb.privat24.commons;

/*
<answ Ref="1213B026005d7c" State="u" ExtId="testextid"/>

<answ ErrCode="113" ErrMes="Сессия не найдена." State="e" ExtId="testextid"/>

*/

import javax.xml.bind.annotation.*;

@XmlRootElement(name = "answ")
@XmlAccessorType(XmlAccessType.FIELD)
public class CreateResponse {

    @XmlAttribute(name = "Ref")
    private String reference;
    @XmlAttribute(name = "State")
    private String state;
    @XmlAttribute(name = "ExtId")
    private String extId;
    @XmlAttribute(name = "ErrCode")
    private Integer errCode;
    @XmlAttribute(name = "ErrMes")
    private String errMes;

    public CreateResponse() {
    }

    public String getReference() {
        return reference;
    }

    public CreateResponse setReference(String reference) {
        this.reference = reference;
        return this;
    }

    public String getState() {
        return state;
    }

    public CreateResponse setState(String state) {
        this.state = state;
        return this;
    }

    public String getExtId() {
        return extId;
    }

    public CreateResponse setExtId(String extId) {
        this.extId = extId;
        return this;
    }

    public Integer getErrCode() {
        return errCode;
    }

    public CreateResponse setErrCode(Integer errCode) {
        this.errCode = errCode;
        return this;
    }

    public String getErrMes() {
        return errMes;
    }

    public CreateResponse setErrMes(String errMes) {
        this.errMes = errMes;
        return this;
    }
}
